<?php

namespace Sisesporte\Entity;

use Doctrine\ORM\Mapping as ORM,
        Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="tipo_situacao_matricula")
 * @ORM\Entity(repositoryClass="Sisesporte\Repository\TipoSituacaoMatriculaRepository")
 */
class TipoSituacaoMatricula {

    public function __construct($options = null) {
        Configurator::configure($this, $options);
        $this->tipoSituacaoMatricula = new ArrayCollection;
    }

    /**
     * @var integer $sqTipoSituacaoMatricula
     * @ORM\Column(name="sq_tipo_situacao_matricula", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $sqTipoSituacaoMatricula;
    
    /**
     * @var string $noSituacaoMatricula
     * @ORM\Column(name="no_situacao_matricula", type="text", nullable=false)
     */
    protected $noSituacaoMatricula;
    
    /**
     * @var string $sgSituacaoMatricula
     * @ORM\Column(name="sg_situacao_matricula", type="text", nullable=false)
     */
    protected $sgSituacaoMatricula;

    /**
     * @var boolean $stAtivo
     * @ORM\Column(name="st_ativo", type="boolean", nullable=false)
     */
    protected $stAtivo;

    /**
     * @ORM\OneToMany(targetEntity="Sisesporte\Entity\MatriculaAluno", mappedBy="$sq_situacao")
     */
    protected $tipoSituacaoMatricula;
    
    public function getSqTipoSituacaoMatricula() {
        return $this->sqTipoSituacaoMatricula;
    }

    public function getNoSituacaoMatricula() {
        return $this->noSituacaoMatricula;
    }

    public function setNoSituacaoMatricula($noSituacaoMatricula) {
        $this->noSituacaoMatricula = $noSituacaoMatricula;
        return $this;
    }

    public function getSgSituacaoMatricula() {
        return $this->sgSituacaoMatricula;
    }

    public function setSgSituacaoMatricula($sgSituacaoMatricula) {
        $this->sgSituacaoMatricula = $sgSituacaoMatricula;
        return $this;
    }

    public function getStAtivo() {
        return $this->stAtivo;
    }

    public function setStAtivo($stAtivo) {
        $this->stAtivo = $stAtivo;
        return $this;
    }

    public function getTipoSituacaoMatricula() {
        return $this->tipoSituacaoMatricula;
    }

    public function setTipoSituacaoMatricula($tipoSituacaoMatricula) {
        $this->tipoSituacaoMatricula = $tipoSituacaoMatricula;
        return $this;
    }

    public function __toString() {
        return $this->noSituacaoMatricula;
    }
    public function toArray() {
        return array(
            'sqTiposituacaoMatricula' => $this->getSqTipoSituacaoMatricula(),
            'noSituacaoMatricula' => $this->getNoSituacaoMatricula(),
            'sgSituacaoMatricula' =>  $this->getSgSituacaoMatricula(),
            'stAtivo' => $this->getStAtivo(),
            'tipoSituacaoMatricula' => $this->getTipoSituacaoMatricula(),
        );
    }

}
